

#ifndef _SHELL_RESUPTASKS_MESSAGE_H_
#define _SHELL_RESUPTASKS_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "TaskBean.h"
//#include <vector>
using namespace std;

class ResUpTasksMessage : public Message
{
	public:
	ResUpTasksMessage();
	~ResUpTasksMessage();
	void reset();
	ResUpTasksMessage* clone();
	static const int _ID;
	//1添加。2删除。3更新
	int8 type;
	//所有任务
	vector<TaskBean*> allTasks;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
